package com.yxinsur.imc.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;

/**
 * 产品费率因子VALUE对象 imc_rate_factor_value
 * 
 * @author imc
 * @date 2021-03-30
 */
public class ImcRateFactorValue extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    /** 险种费率因子外键 */
    @Excel(name = "险种费率因子外键")
    private Long rateFactorKeyId;

    /** 因子对应值 */
    @Excel(name = "因子对应值")
    private String factorValue;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRateFactorKeyId(Long rateFactorKeyId) 
    {
        this.rateFactorKeyId = rateFactorKeyId;
    }

    public Long getRateFactorKeyId() 
    {
        return rateFactorKeyId;
    }
    public void setFactorValue(String factorValue) 
    {
        this.factorValue = factorValue;
    }

    public String getFactorValue() 
    {
        return factorValue;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rateFactorKeyId", getRateFactorKeyId())
            .append("factorValue", getFactorValue())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("tenantId", getTenantId())
            .toString();
    }
}
